video: Use cross-fade transition to avoid resizes
authorBenjamin Otte <otte@redhat.com>
Mon, 2 Aug 2021 18:11:32 +0000 (20:11 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 2 Aug 2021 18:11:32 +0000 (20:11 +0200)
Slide animations cause changes in the size requests due to the
behavior of GtkRevealer. We can avoid those by using cross-fades, which
don't have that problem.

Besides, cross-fades look better anyway.

gtk/ui/gtkvideo.ui

index 3760d4b7c8d82deb2d8157c4d0adee5780d4c41b..ce70bb6e2304d55ec4f73338e63cfd08cda96c21 100644 (file)
@@ -24,7 +24,7 @@
         <child type="overlay">
           <object class="GtkRevealer" id="controls_revealer">
             <property name="valign">end</property>
-            <property name="transition-type">slide-up</property>
+            <property name="transition-type">crossfade</property>
             <child>
               <object class="GtkMediaControls" id="controls">
                 <style>